package org.example.proxy3;

public class UserServiceProxy implements UserService{

    UserServiceImpl usi;

    public UserServiceProxy(UserServiceImpl usi){
        this.usi = usi;
    }

    @Override
    public void add() {
        usi.add();
        System.out.println("额外功能1");
        System.out.println("额外功能2");
    }

    @Override
    public void delete() {

    }

    @Override
    public void update() {

    }

    @Override
    public void select() {

    }
}
